public class demo5 {
    public static void main(String[] args) {
        Thread thread = new Thread(() -> {
            System.out.println("正在运行 run");
        });
        thread.start();
        String name = thread.getName();
        System.out.println(name);
        System.out.println("正在运行主线程");
    }
}
